﻿package model.drawPanel.Interface;
import java.util.Vector;

import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.widgets.Canvas;
import org.eclipse.swt.widgets.Display;

import model.drawPanel.entitys.Entity;

public interface IDrawPanelModel  {
  public void setWidth(int width);
  public void setColor(Color color);
  public void setTool(int tool);
  public void setLineStyle(int lineStyle);
  public void setFill(boolean hasFill);
  public void undo();
  public void redo();
  public void addPanel();

  public void deletePanel(int id);

  public void choosePanle(int id);
  public void addPicture(String filePath) ;
  public void draw(Display display , GC gc,int width,int height);

  public void save(String fileName);
  
  public void requestAuthority();//申请
  public void passAuthority(String id);//"0"代表放弃
  public void setTextInput(StyledText text);
  public void setCursor(int mouseStatus);//0代表箭头，1代表画笔
  public void exite();
}